package com.Lyy.controller;

import com.Lyy.entity.Dept;
import com.Lyy.service.DeptSEI;
import lombok.Data;

import java.util.List;

@Data
public class DeptCO {

    private DeptSEI deptSEI;
    public List<Dept> SelectDeptAll() {
        return deptSEI.SelectDeptAll();
    }

    public Dept SelectDeptOne(int id) {
        return deptSEI.SelectDeptOne(id);
    }

    public int AddDept(Dept dept) {
        return deptSEI.AddDept(dept);
    }

    public int DelDeptByID(int id) {
        return deptSEI.DelDeptByID(id);
    }

    public int UpdateDeptByID(Dept dept) {
        return deptSEI.UpdateDeptByID(dept);
    }
}
